import { BasicColumn } from "@/components/Table";

export const tableColumns: BasicColumn[] = [
  {
    title: '门店名称',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '门店位置',
    dataIndex: 'address',
    key: 'address',
  },
  {
    title: '门店房间数',
    dataIndex: 'roomCount',
    key: 'roomCount',
  },
  {
    title: '门店大小',
    dataIndex: 'size',
    key: 'size',
  },
  {
    title: '门店状态',
    dataIndex: 'status',
    slots: { customRender: 'status' }
  },
  {
    title: '备注',
    dataIndex: 'remark',
    key: 'remark',
  },
  {
    title: '操作',
    dataIndex: 'operation',
    fixed: 'right',
    slots: {
      customRender: 'operation'
    }
  }
]

export const AddStoreFormRules = {
  name: [{ required: true, message: '请输入门店名称!' }],
  address: [{ required: true, message: '请输入门店位置!' }],
  roomCount: [{ required: true, message: '请输入门店房间数!' }],
  phone: [{ required: true, message: '请输入电话号码!' }],
  // size: [{ required: true, message: '请输入门店大小!' }],
};

